<?php 
class EventManager_Service_Acl extends Zend_Acl{

	public function __construct(){
	
		$this->addRole(new Zend_Acl_Role('guest'));
		$this->addRole(new Zend_Acl_Role('user'));
		$this->addRole(new Zend_Acl_Role('admin'),'user');
		
		$this->add(new Zend_Acl_Resource('index'));
		$this->add(new Zend_Acl_Resource('logout'));
		$this->add(new Zend_Acl_Resource('login'));
		$this->add(new Zend_Acl_Resource('evenementen'));
		$this->add(new Zend_Acl_Resource('new'));
		
		$this->allow(null,'login');
		$this->deny('user','login');
		$this->allow('user','evenementen');
		$this->allow('user','logout');
		$this->allow('admin','new');
	
	
	}	
}
